<template>
	<view>
		<!-- 添加coupon-not类  灰色 -->
		<view class="coupon">
			<view class="coupon-left">
				<view class="number"><text>￥</text>30</view>
				<view class="sub">满100可用</view>
			</view>
			<view class="coupon-right">
				<view class="title">指定商品信息指定商品信息(部分商品可用)</view>
				<view class="time">有效日期：2021.06.01至2021.07.01</view>
			</view>
			<view class="coupon-state">
				<text class="text-blue">未使用</text>
				<!-- <text class="text-grey">已过期</text> -->
				<!-- <image class="not" src="../../static/not.png" mode="widthFix"></image> -->
			</view>
		</view>
		<view class="coupon coupon-not">
			<view class="coupon-left">
				<view class="number"><text>￥</text>30</view>
				<view class="sub">满150可用</view>
			</view>
			<view class="coupon-right">
				<view class="title">指定商品信息</view>
				<view class="time">有效日期：2021.06.01至2021.07.01</view>
			</view>
			<view class="coupon-state">
				<!-- <text class="text-blue">未使用</text> -->
				<!-- <text class="text-grey">已过期</text> -->
				<image class="not" src="../../../static/icon/not.png" mode="widthFix"></image>
			</view>
		</view>
		<view class="coupon coupon-not">
			<view class="coupon-left">
				<view class="number"><text>￥</text>30</view>
				<view class="sub">无门槛</view>
			</view>
			<view class="coupon-right">
				<view class="title">指定商品信息</view>
				<view class="time">有效日期：2021.06.01至2021.07.01</view>
			</view>
			<view class="coupon-state">
				<!-- <text class="text-blue">未使用</text> -->
				<text class="text-grey">已过期</text>
				<!-- <image class="not" src="../../static/not.png" mode="widthFix"></image> -->
			</view>
		</view>
		<!-- 优惠券弹框 -->
		<!-- <tui-modal :show="true" :custom="true" class="coupon-modal" @click='hindeModal'  @handleClickCancel='hindeModal'>
			<text class="icon iconfont icon-cuo" @tap='hindeModal'></text>
			<view class="feedback-finish text-center">
				<image src="https://zj.gdwrh.com/fnyg/static/images/my-img/fkyj_cg_x3.png"></image>
				<view class="thanks">恭喜您！修改支付密码成功</view>
				<tui-button width="80%" type="danger" :shadow="true" margin="0 50rpx" shape="circle" :size="30" @tap="hindeModal">完成</tui-button>
			</view>
		</tui-modal> -->
	</view>
</template>

<script>
	import cache from '@/common/js/utils/cache.js'
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			put(){
				cache.put('test', 111, 2)
			},
			get(){
				console.log(cache.get('test'))
			}
		}
	}
</script>

<style lang="scss" scoped>
	.coupon{
		background-color: #FFFFFF;
		margin: 20rpx;
		display: flex;
		flex-direction: row;
		border-bottom: 1px solid #dddddd;
		.coupon-left{
			width: 30%;
			padding: 20rpx 30rpx;
			background-image: linear-gradient(#373839, #1c1e21);
			color: #efcf9f;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			flex-shrink: 0;
			.number{
				font-size: 60rpx;
				font-weight: bold;
				display: flex;
				align-items: flex-start;
				& > text{
					font-size: 26rpx;
				}
			}
			.sub{
				font-size: 24rpx;
				color: #FFFFFF;
			}
		}
		.coupon-right{
			width: 47%;
			display: flex;
			flex-direction: column;
			justify-content: space-evenly;
			padding: 20rpx;
			.title{
				overflow: hidden;
				word-break: break-all;
				text-overflow: ellipsis; 
				display: -webkit-box;
				-webkit-box-orient: vertical; 
				-webkit-line-clamp: 2;
				height: 80rpx;
				font-size: 30rpx;
			}
			.time{
				font-size: 24rpx;
				color: #999999;
			}
		}
		.coupon-state{
			width: 23%;
			border-left: 1px dashed #5990f4;
			margin: 20rpx 0;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-shrink: 0;
			.text-blue{
				color: #5990f4;
			}
			.text-grey{
				color: #dddddd;
			}
			.not{
				width: 120rpx;
				height: 120rpx;
			}
		}
	}
	.coupon-not{
		.coupon-left{
			background-image: linear-gradient(#dddddd, #dddddd);
			color: #FFFFFF;
		}
		.coupon-right{
			color: #dddddd;
			.time{
				color: #dddddd;
			}
		}
		.coupon-state{
			border-left: 1px dashed #dddddd;
			.text-blue{
				color: #dddddd;
			}
		}
	}
</style>
